how to calculate median time. There are any references about how to calculate median time in here. you can look below.